package manager.goods.dao;
import manager.goods.vo.StockVO;
import tk.mybatis.mapper.additional.insert.InsertListMapper;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface StockDao extends Mapper<StockVO>, InsertListMapper<StockVO> {
    //根据条件查询库存
    List<StockVO> selectByCondition(StockVO stockVO);
    //批量保存库存信息
    void saveStocks(List<StockVO> stockVOList);
    //根据SpuId删除库存信息
    void deleteStock(List<String> ids);
    //更新库存信息
    void updateStock(StockVO stockVO);
    //扣减库存
    void updateStockByQty(StockVO stockVO);
}
